Generalized continued fraction